﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="~/css/aui.css" />
    <style type="text/css">
        .header {
            padding: 2.5rem 0.5rem 2rem 0.5rem;
        }
    </style>
</head>
<body>
    @using (Html.BeginForm("newDoctor", "Admin", FormMethod.Post))
    {
        <header class="aui-bar aui-bar-nav aui-text-left header" id="header">
            <br />
            <h1>
                <a class="aui-btn aui-pull-right" tapmode onclick="openClub()">
                    <i class="aui-iconfont aui-icon-my"></i>
                </a>
                添加新的医生
            </h1>
        </header>
        <div class="aui-content aui-margin-b-15">
            <ul class="aui-list aui-form-list">
                <li class="aui-list-header">带有输入框</li>
                <li class="aui-list-item">
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-label">
                            医生名称
                        </div>
                        <div class="aui-list-item-input">
                            <input type="text" name="DoctorName" id="DoctorName" placeholder="请输入">
                        </div>
                    </div>
                </li>
                <li class="aui-list-item">
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-label">
                            科室选择
                        </div>
                        <div class="aui-list-item-input">
                            <!--account_password.dbo-->
                            <select name="SelectClassNumber">
                                <option>请选择</option>
                                <option>外科</option>
                                <option>内科</option>
                                <option>儿科</option>
                                <option>骨科</option>
                            </select>
                        </div>
                    </div>
                </li>
                <li class="aui-list-item">
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-label">
                            职称选择
                        </div>
                        <div class="aui-list-item-input">
                            <select name="SelectDoctorType">
                                <option>请选择</option>
                                <option>主任医师</option>
                                <option>副主任医师</option>
                                <option>主治医师</option>
                            </select>
                        </div>
                    </div>
                </li>
                <li class="aui-list-item">
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-label">
                            技能描述
                        </div>
                        <div class="aui-list-item-input" name="DoctorSkill">
                            <textarea name="DoctorSkill" placeholder="Textarea">
					</textarea>
                        </div>
                    </div>
                </li>

                <li class="aui-list-item">
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-label">
                            登陆密码
                        </div>
                        <div class="aui-list-item-input">
                            <input type="password" name="Password" placeholder="医生登陆系统使用的密码">
                        </div>
                    </div>
                </li>
                <li class="aui-list-item">
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-label">
                            备注
                        </div>
                        <div class="aui-list-item-input">
                            <input type="text" name="Message" placeholder="请输入">
                        </div>
                    </div>
                </li>
                <section class="aui-grid">
                    <div class="aui-row">
                        <div class="aui-col-xs-3">
                            <h3>
                                排班设置
                            </h3>
                        </div>
                        <div class="aui-col-xs-3">
                            <input type="checkbox" class="aui-switch" name="w1">
                            <div class="aui-grid-label">周一</div>
                        </div>
                        <div class="aui-col-xs-3">
                            <input type="checkbox" class="aui-switch" name="w2">
                            <div class="aui-grid-label">周二</div>
                        </div>
                        <div class="aui-col-xs-3">
                            <input type="checkbox" class="aui-switch" name="w3">
                            <div class="aui-grid-label">周三</div>
                        </div>
                        <div class="aui-col-xs-3">
                            <input type="checkbox" class="aui-switch" name="w4">
                            <div class="aui-grid-label">周四</div>
                        </div>
                        <div class="aui-col-xs-3">
                            <input type="checkbox" class="aui-switch" name="w5">
                            <div class="aui-grid-label">周五</div>
                        </div>
                        <div class="aui-col-xs-3">
                            <input type="checkbox" class="aui-switch" name="w6">
                            <div class="aui-grid-label">周六</div>
                        </div>
                        <div class="aui-col-xs-3">
                            <input type="checkbox" class="aui-switch" name="w7">
                            <div class="aui-grid-label">周日</div>
                        </div>
                    </div>
                </section>

            </ul>
            <div class="aui-list-item-inner">
                <p><button type="submit" class="aui-btn aui-btn-info aui-btn-block aui-btn-outlined">添加此医生</button></p>
            </div>
            <br/>
            <div class="aui-list-item-inner">
                <a href="/Admin/Index"><p><div class="aui-btn aui-btn-info aui-btn-block aui-btn-outlined">返回主界面</div></p></a>
            </div>
            
        </div>
                }
    </body>
</html>
<script type="text/javascript" src="~/script/aui-dialog.js"></script>
<script type="text/javascript" src="~/script/aui-toast.js"></script>
<script type="text/javascript">
    var dialog = new auiDialog({})
    var toast = new auiToast();
    function checkradio(num) {
        var str = document.getElementById('w' + num);
        if (checkradio)
            str.className = "aui-btn-success";
        else
            str.className = "aui";
    }
    function showDefault(type) {
        switch (type) {
            case "success":
                toast.success({
                    title: "提交成功",
                    duration: 2000
                });
                break;
            case "fail":
                toast.fail({
                    title: "提交失败",
                    duration: 2000
                });
                break;
            case "custom":
                toast.custom({
                    title: "提交成功",
                    html: '<i class="aui-iconfont aui-icon-laud"></i>',
                    duration: 2000
                });
                break;
            case "loading":
                toast.loading({
                    title: "加载中",
                    duration: 2000
                }, function (ret) {
                    console.log(ret);
                    setTimeout(function () {
                        toast.hide();
                    }, 3000)
                });
                break;
            default:
                // statements_def
                break;
        }
    }
   
</script>
<script type="text/javascript" src="~/script/api.js"></script>
<script type="text/javascript">
    apiready = function () {
        api.setStatusBarStyle({
            style: 'light'
        });
        api.parseTapmode();
        var header = $api.byId('header');
        var headerPos = $api.offset(header);
        var body_h = $api.offset($api.dom('body')).h;
        var header_h = $api.offset($api.byId('header')).h;
        api.openFrame({
            name: 'index_frm',
            url: '~/html/index_frm.html',
            bounces: true,
            rect: {
                x: 0,
                y: header_h,
                w: 'auto',
                h: 'auto'
            }
        })
    };
    function openClub() {
        var delay = 0;
        if (api.systemType != 'ios') {
            delay = 300;
        }
        api.openWin({
            name: 'club_win',
            url: '~/html/club_win.html',
            bounces: false,
            delay: delay,
            slidBackEnabled: true,
            vScrollBarEnabled: false,
            progress: {
                type: "page"
            }
        });
    }
    function closeWin() {
        api.closeWin({
        });
    }
</script>